
INPUTS = [
    ('gra1.txt', 'inp1.txt', ),
    ('grammar.txt', 'input.txt', )
]

import ep_main

results = []
for args in INPUTS:
    try:
        result = ep_main.main(args)
    except Exception as e:
        print '> Problem in', args
        print e
        result = False
    finally:
        results.append(result)

print '============'
print results
print '============'
print '============'